<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
    <title>Staff Control Panel - Powered By Customer Connect</title>
    <link rel="Shortcut Icon" href="<?php echo Yii::app()->baseUrl; ?>/favicon.ico"/>

    <script>
        <?php echo "baseUrl ='" . Yii::app()->baseUrl . "';"; ?>
    </script>
    <?php Yii::app()->clientScript->registerCoreScript('jquery')?>
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->baseUrl; ?>/css/admin.css"/>
    <link type="text/css" rel="stylesheet" href="<?php echo Yii::app()->baseUrl; ?>/css/gridsearch.css"/>
    <link type="text/css" rel="stylesheet" href="<?php echo Yii::app()->baseUrl; ?>/css/form.css"/>
    <link type="text/css" rel="stylesheet" href="<?=Yii::app()->baseUrl;?>/js/fancybox/jquery.fancybox-1.3.4.css"/>
    <link type="text/css" rel="stylesheet" href="<?php echo Yii::app()->baseUrl; ?>/extjs/resources/css/ext-all.css"/>
    <script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/extjs/ext-all.js"></script>
    <script>
        if (Ext.BLANK_IMAGE_URL.substr(0, 5) != 'data:') {
            Ext.BLANK_IMAGE_URL = 'images/s.gif';
        }

    </script>
    <script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/js/app/model.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/js/app/StatusBar.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/js/app/LiveSearchGridPanel.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/js/jquery.easing.1.3.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/js/jquery.hoverIntent.minified.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/js/jquery.bgiframe.min.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/js/excanvas.compiled.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/js/jquery.qtip-1.0.0-rc3.min.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/js/jquery.bt.min.js"></script>
    <script src="<?=Yii::app()->baseUrl;?>/js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
    <script src="<?=Yii::app()->baseUrl;?>/js/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
    <script src="<?=Yii::app()->baseUrl;?>/js/jtab.js"></script>
    <script src="<?=Yii::app()->baseUrl;?>/js/jquery.tabify.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/js/app/app.js"></script>

</head>

    <body class="darkgray">
        <div style="font-weight: bold; color:red; position:absolute;left:110px;top:7px;" id="mainsitenotice"></div>
        <div id="msg-div" class="msg-div-wrapper" style="display:none;"><div id="msg-div-inner" class="msg-div-inner"></div></div>
        <div id="header">
            
            <?php $this->widget('MyMenu',array(
                'items'=>array(
 array(
                        'label'=>'Home',
                        'url'=>'index.php?r=site',                     
                        'active'=>Yii::app()->controller->id=='site',
                        'items'=>array(
                            array(
                                'label'=>'Dashboard',
                                'url'=>'index.php?r=site',
                                'active'=>Yii::app()->controller->id.'/'.Yii::app()->controller->action->id=='site/index',                                
                            ),
                          
                        )
                    ),
                    array(
                        'label'=>'Customer',
                        'url'=>'index.php?r=Customers',

            'items' => array(
                array(
                    'label' => 'Customer list',
                    'url' => 'index.php?r=Customers',
                    'activeRoute' => array(
                        'customers', 'locations', 'locationcontacts',
                        'invoices', 'dispatches', 'equipment', 'documents',
                        'dispatchdetails', 'dispatchparts', 'dispatchequipment', 'dispatchtech',
                        'jobs'
                    )
                )
            )
        ),
        array(
            'label' => 'Company',
            'url' => '#',
            'items' => array(
                array(
                    'label' => 'Employees',
                    'url' => 'index.php?r=employees',
                    'activeRoute' => array(
                        'employees', 'employeeequipment', 'employeenotes', 'employeecontacts', 'vacationhrs', 'sickhrs', 'employeenotes', 'employeedocuments'
                    )
                ),
                array(
                    'label' => 'Company Setup',
                    'url' => 'index.php?r=companyinfo/main/update',
                    'activeRoute' => array(
                        'main', 'emailsettings', 'defaultaccounts', 'dispatchsetup', 'inventorysetup'
                    ),

                ),
                array(
                    'label' => 'Employee Groups',
                    'url' => 'index.php?r=empgroup',
                    'activeRoute' => array(
                        'empgroup'
                    )

                            )
                        )
                    ),
                    array(
                        'label'=>'Dispatch',
                        'url'=>'index.php?r=dispatch',
                        'items'=>array(
                            array(
                                'label'=>'Dispatch Board',
                                'url'=>'index.php?r=dispatchboard',
                                'activeRoute'=>array(
                                    'dispatchboard'
                                )
                            ),
                            array(
                                'label'=>'Dispatch List',
                                'url'=>'index.php?r=dispatch',
                                'activeRoute'=>array(
                                    'dispatch'
                                )
                            ),
                            array(
                                'label'=>'Dispatch Status Codes',
                                'url'=>'index.php?r=statuscode',
                                'activeRoute'=>array(
                                'statuscode'
                                )
                            ),
                            
                        )
                    ),
                    array(
                        'label'=>'Inventory',
                        'url'=>'index.php?r=inventory',
                        'activeRoute'=>array(
                            'invcategories',
                        ),
                        'items'=>array(
                            array(
                                'label'=>'Inventory List',
                                'url'=>'index.php?r=inventory',
                                'activeRoute'=>array(
                                    'inventory','inventoryquanity','inventoryact','inventoryassembly'
                                )
                            ),
                            array(
                                'label'=>'Warehouses',
                                'url'=>'index.php?r=warehouse',
                                'activeRoute'=>array(
                                    'warehouse'
                                )
                            ),
                            array(
                                'label'=>'Part Categories',
                                'url'=>'index.php?r=invcategories',
                                'activeRoute'=>array(
                                    'invcategories','invsubcategories'
                                )
                            ),
                            
                           
                        ),
                        
                    ),

        array(
            'label' => 'Vendors',
            'url' => 'index.php?r=vendors/vendors/',
            'items' => array(
                array(
                    'label' => 'List Vendors',
                    'url' => 'index.php?r=vendors/vendors/',
                    'activeRoute' => array(
                        'vendors', 'vendorlocations', 'vendordocuments',
                        'vendornotes', 'vendorcontacts'
                    )
                ),
                array(
                    'label' => 'Purchase Orders',
                    'url' => 'index.php?r=vendors/po/index',
                    'activeRoute' => array(
                        'po'
                    )
                ),
                array(
                    'label' => 'Mark Up Codes',
                    'url' => '/index.php?r=markupcodes',
                    'activeRoute' => array(
                        'markupcodes'
                    )
                ),
                array(
                    'label' => 'Price Books',
                    'url' => 'index.php?r=pricebooks',
                    'activeRoute' => array(
                        'pricebooks'
                    )
                ), array(
                    'label' => 'Manufacters',
                    'url' => 'index.php?r=mfg',
                    'activeRoute' => array(
                        'mfg'
                    )
                )

            )
        ),
        array(
            'label' => 'Accounting',
            'url' => '#',
            'items' => array(
                array(
                    'label' => 'General Journal',
                    'url' => 'index.php?r=finLedger',
                    'activeRoute' => array('finLedger')
                ),
                array(
                    'label' => 'Make Deposit',
                    'url' => 'index.php?r=makedeposit',
                    'activeRoute' => array('makedeposit')
                ),
                array(
                    'label' => 'Payments',
                    'url' => 'index.php?r=payment',
                    'activeRoute' => array('payment')
                ),
                array(
                    'label' => 'The register',
                    'url' => '#',

                )
            )
        ),
        array(
            'label' => 'Sales',
            'url' => '#',
            'items' => array(
                array(
                    'label' => 'Quote List',
                    'url' => 'index.php?r=invoicelist&type=' . Invoice::TYPE_QUOTE,
                    'activeRoute' => array(
                        'invoicelist'
                    )
                ),
                array(
                    'label' => 'Sales Order',
                    'url' => 'index.php?r=invoicelist&type=' . Invoice::TYPE_SALES_ORDERS,
                    'activeRoute' => array(
                        'invoicelist'
                    )
                ),
                array(
                    'label' => 'Invoice List',
                    'url' => 'index.php?r=invoicelist&type=' . Invoice::TYPE_INVOICE,
                    'activeRoute' => array(
                        'invoicelist'
                    )
                ),
                array(
                    'label' => 'Credit Memo List',
                    'url' => 'index.php?r=invoicelist&type=' . Invoice::TYPE_CREDIT_MEMO,
                    'activeRoute' => array(
                        'invoicelist'
                    )
                ),
                array(
                    'label' => 'Payment Terms',
                    'url' => 'index.php?r=terms',
                    'activeRoute' => array(
                        'terms'
                    )
                ),
                array(
                    'label' => 'Tax codes',
                    'url' => 'index.php?r=taxcodes',
                    'activeRoute' => array(
                        'taxcodes'
                    )
                )
            )
        ),

        array(
            'label' => 'Contracts',
            'url' => '#',

            'items' => array(
                array(
                    'label' => 'Contract Plan Types',
                    'url' => 'index.php?r=plantypes ',
                    'activeRoute' => array(
                        'plantypes'
                    )
                )
            )
        ),
        array(
            'label' => 'Report',
            'url' => '#',

            'items' => array(
                array(
                    'label' => 'Job Report',
                    'url' => 'index.php?r=report/report',
                    'activeRoute' => array(
                        'report'
                    )
                ), array(
                    'label' => 'Sales Tax Report',
                    'url' => 'index.php?r=report/report/tax',
                    'activeRoute' => array(
                        'report'
                    )
                ), array(
	    		'label'=>'Invoice Report',
			'url'=>'index.php?r=invoiceexport',
			'activeRoute'=>array(
				'invoicereport'
			)
		)
            )
        ),
        array(
            'label' => 'System Setting',
            'url' => '#',
            'items' => array(
                array(
                    'label' => 'Users',
                    'url' => 'index.php?r=users',
                    'activeRoute' => array('users')
                ),
                array(
                    'label' => 'Permissions',
                    'url' => '#'
                ),
                array(
                    'label' => 'Account Categories',
                    'url' => 'index.php?r=acctcat',
                    'activeRoute' => array(
                        'acctcat'
                    )
                ),
                array(
                    'label' => 'Chart of Account',
                    'url' => 'index.php?r=coa',
                    'activeRoute' => array(
                        'coa'
                    )
                ),
                array(
                    'label' => 'Pages Administration',
                    'url' => 'index.php?r=pages',
                    'activeRoute' => array(
                        'pages'
                    )
                ),
                array(
                    'label' => 'Time Zone',
                    'url' => 'index.php?r=timezone',
                    'activeRoute' => array(
                        'timezone'
                    )
                ),
                array(
                    'label' => 'Sales Departments',
                    'url' => 'index.php?r=SalesDepartments',
                    'activeRoute' => array(
                        'SalesDepartments'
                    )
                ), array(
                    'label' => 'Sales Department Categories',
                    'url' => 'index.php?r=SalesDepartments',
                    'activeRoute' => array(
                        'SalesDepartments'
                    )
                ),
                array(
                    'label' => 'Counters',
                    'url' => 'index.php?r=counters',
                    'activeRoute' => array(
                        'counters'
                    )
                ),
                array(
                    'label' => 'Job Billing Status',
                    'url' => 'index.php?r=jobsBillingStatus',
                    'activeRoute' => array(
                        'jobsBillingStatus'
                    )
                ), array(
                    'label' => 'Job Classes',
                    'url' => 'index.php?r=jobsClass',
                    'activeRoute' => array(
                        'jobsClass'
                    )
                ), array(
                    'label' => 'Job Status',
                    'url' => 'index.php?r=JobsStatus',
                    'activeRoute' => array(
                        'JobsStatus'
                    )
                ),


            )
        ),

    )
))?>
<div class="user-box">
    <div class="user-box-name">
        <a href="index.php?fuse=admin&amp;view=EditAddAdminAccount">Welcome <?php echo getUserRealname(Yii::app()->user->name)?></a>

    </div>
    <ul class="user-nav">
        <li>
            <a id="session_count" class="session_count" href="index.php?fuse=home&view=ViewEvents&startdate=today">0</a><a
            id="day_count" class="day_count" href="index.php?fuse=home&view=ViewEvents&startdate=today">1</a>
        </li>
        <li><a onclick="">My Notes</a></li>
        <li><a onclick="">My Status</a></li>

        <li><a onclick="" qtip="Context Help" href="javascript:void(0);">Help</a></li>
        <li><a href="index.php?r=site/logout">Logout</a></li>
    </ul>
</div>
<div class="searchquery">
    <div id="general-search-box"></div>
</div>
<!-- change #header h1 to with your logo in main.css -->

<h1 class="mainlogo"><a href="#"></a></h1>
</div>

<div id="main">


            <?php echo $content?>
            
        </div> <!-- main -->


<div id="advancedsearch-win" class="x-hidden">
    <div class="x-window-header">Search Options</div>
    <div id="advancedsearchcontent" class="x-hidden"></div>
</div>


</body>
</html>
